package com.xiangge.zuoye2;

public class Demo4 {
    public static void main(String[] args) {
        int[] arr = {2, 1, 3, 5, 4};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            sum = sum * 10 + arr[i];
        }
        System.out.println("sum = " + sum);
    }
}
